<?php

$colname_sett_review = "-1";
if (isset($data_halaman)) {
  $colname_sett_review = $data_halaman;
}
$colname_konten = "-1";
if (isset($datakonten)) {
  $colname_konten = $datakonten;
}
$colname_sett_review2 = "-1";
if (isset($tipe_layoutnya)) {
  $colname_sett_review2 = 'defaultlayout'.$tipe_layoutnya;
}
$colname_konten2 = "-1";
if (isset($datakonten)) {
  $colname_konten2 = $datakonten;
}
mysql_select_db($database_konek, $konek);
$query_sett_review = sprintf("SELECT * FROM plug_review WHERE id_menu = %s and konten_ke = %s or id_menu = %s and konten_ke = %s ORDER BY id ASC", GetSQLValueString($colname_sett_review, "int"), GetSQLValueString($colname_konten, "int"), GetSQLValueString($colname_sett_review2, "text"), GetSQLValueString($colname_konten2, "int"));
$sett_review = mysql_query($query_sett_review, $konek) or die(mysql_error());
$row_sett_review = mysql_fetch_assoc($sett_review);
$totalRows_sett_review = mysql_num_rows($sett_review);

if ($totalRows_sett_review > 0) {
do { 

$pilih_plug=$row_sett_review['plugin'];
$pilih_sett=$row_sett_review['sett'];

include "g-konten/plugin/".$row_sett_review['plugin']."/review.php";	  
	  
 } while ($row_sett_review = mysql_fetch_assoc($sett_review));
}

		mysql_free_result($sett_review);
?>
